﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApplication4.aduc.rom
{
    /// <summary>
    /// Interaction logic for rom.xaml
    /// </summary>
    public partial class rom : System.Windows.Controls.Image, CommunicatorInterface
    {
        private byte[] data = new byte[256];
        public rom()
        {
            InitializeComponent();
        }

        public byte this[int addr]
        {
            get
            {
                return data[addr];
            }
            set
            {
                throw new Exception("Cannot set value to EEPROM");
            }
        }
    }
}
